Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default to :git from :subversion #218

Closed
wants to merge 1 commit into from
Closed

Set default to :git from :subversion #218

wants to merge 1 commit into from

Conversation

czarneckid
Copy link
Contributor

Changes default SCM from Subversion to git. This also seems to jive with the documentation on the wiki with respect to configuration variables.

@svperfecta
Copy link

Seriously, +100000

@hayesr
Copy link

hayesr commented Jun 2, 2012

+1 —Was wondering about this just the other day.

@unicornrainbow
Copy link

👍

@leehambley
Copy link
Member

There's some work I'd like to do on top of this, but thanks for the kick in the ass. I'll look more closely at this in the coming days. (I want to make it clearer how to use local and remote repositories, and change some other defaults)

@ricokareem
Copy link

last try with this comment. :-)

Would something like this help?

_cset :scm, scm_default


# This defaults your :scm variable to svn as long as your have .svn 
# (code is checked out from Subversion) in the directory where you run cap.
# If not, and you have .git instead (code is checked out from Git), then
# set :scm variable to git.

def scm_default
  if File.exist? '.svn'
    :subversion
  elsif File.exist? '.git'
    :git
  end
end

@czarneckid
Copy link
Contributor Author

I could certainly amend the commit with this behavior. What do you think @leehambley ?

@leehambley
Copy link
Member

I like that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants